package org.aaron.demos;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class BroadcastActivity extends Activity{
	private Button send_broadcast_btn;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		this.setContentView(R.layout.broadcastlayout);
		initActivity();
	}
	private void initActivity(){
		send_broadcast_btn= (Button) this.findViewById(R.id.send_broadcast_btn);
		send_broadcast_btn.setOnClickListener(new BroadcastClickListener());
	}
	class BroadcastClickListener implements OnClickListener{
		
		@Override
		public void onClick(View v) {
			Intent intent=new Intent();
			intent.setAction(Intent.ACTION_EDIT);
			BroadcastActivity.this.sendBroadcast(intent);
		}
	}
}
